
#include <QtCore/QCoreApplication>
#include <QTextCodec>
#include "nr_io_mongodb_test.h"
#include "nr_xmlTomongodb_test.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
   
    /*QTextCodec *codec =  QTextCodec::codecForName("GB2312");
    QTextCodec::setCodecForLocale(codec);
    QTextCodec::setCodecForCStrings(codec);
    QTextCodec::setCodecForTr(codec);
*/
//     nr_io_mongodb_test mongodb_test(&a);
//     mongodb_test.run();

    nr_xmlTomongodb_test xml_mongodb_test_1;
    qDebug() << "run:";
    xml_mongodb_test_1.run();
    qDebug() << "";

    nr_xmlTomongodb_test xml_mongodb_test_2;
    qDebug() << "validate:";
    xml_mongodb_test_2.validate();
    qDebug() << "";

    return a.exec();
}
